<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      // {name : 'cxm'} 对象键值对的集合
      // 字面量创建一个对象
      var obj = {
        name: 'cxm',
        age: 20,
        location: '安徽',
      }
      console.log(obj)

      // 内置构造函数
      var newObj = new Object()
      newObj.name = 'cxmm'
      newObj.age = 22
      console.log(newObj)

      // key值
    </script>
  </body>
</html>
